import  employees from '@/assets/constant/employees.js'
import { formatTime } from '@/utils'
import dayjs from 'dayjs'
//将聘用形势字符装换
export default {
    //
    formatType(id){
        const result=employees.hireType.find((item)=>{
            return item.id===id
        })
        return result?result.value:'-'
    },
    //时间格式化
formatTime(time){
    return dayjs(time).format('YYYY-MM-DD ')
},
formatTimePus(time){
    return dayjs(time).format('YYYY-MM-DD HH:mm')
}
}
